package com.aos.dto.parameters;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @ClassName RoleParameter
 * @Description:角色参数类
 * @Author wumingwang
 * @Date 2018/9/13 16:13
 * @Version 1.0
 */
@Data
public class RoleParameter implements Serializable {

    private static final long serialVersionUID = 3140596320393455650L;

    @ApiModelProperty(hidden = true)
    private Long id;

    /**角色名*/
    @NotNull(message="角色名称不能为空")
    @Size(min=1,max=30,message="名称必须在1~30位")
    private String roleName;

    /**应用id*/
//    @NotNull(message="应用不能为空")
    private Long applicationId;

    /**备注*/
    @Size(max=50,message="备注不能超过50位")
    private String comment;

//    @NotNull(message="角色拥有的菜单资源不能为空")
    private Long[] permissions;

    /**应用code*/
    private String appCode;
}
